/**CopyRight[1990-2012]<lyc2877@gmail.com>
 */
#include "./include/WorkerFactory.h"
CWorkerFactory::CWorkerFactory() {
}

CWorkerFactory::~CWorkerFactory() {
}

CThread* CWorkerFactory::get_worker(int64_t in_lType) {
  CThread* p = NULL;
  switch(in_lType){
    case WORKER_SERVER:
      p = new CServer(in_lType);
      break;
    case WORKER_CLIENT:
      p = new CClient(in_lType);
      break;
  }
  return p;
}
